package view.toolboxComponents;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
/** * An abstraction of a standard panel that will be used upon the designer * @author Daniel Bond, Mohammed Abdullah, Gideon Pyzer * */
@SuppressWarnings("serial")
public abstract class AbstractPanel extends JPanel 
{	
	public AbstractPanel()
	{
		this.setMaximumSize(new Dimension(150,20));
		this.setAlignmentX(0.0f);
		this.setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
		//this.setBackground(new Color(125,189,153));
		this.setFont(new Font("Times New Roman", Font.PLAIN, 18));
	}		/**	 * Creates a rigid area for the panel	 */
	protected void makeRigidArea(){
		this.add(Box.createRigidArea(new Dimension(5,0)));
	}
	/**	 * Allows all subclasses to be able to reset their text component	 */
	public abstract void resetComponent();
}